package com.pattern.adapter;

/**
 * @Description: 对象适配器
 * @Author: whp
 * @Date: 2021-01-28 14:33
 */
public class ObjectAdapter implements Target {
    Adaptee adaptee;

    public ObjectAdapter(Adaptee adaptee) {
        this.adaptee = adaptee;
    }


    @Override
    public void request() {
        System.out.println("适配工作。。。。。");
        adaptee.secificRequest();
    }
}
